import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

extension ThemeExtension on BuildContext {
  bool get isDark => Theme.of(this).brightness == Brightness.dark;
  Color get backgroundColor => Theme.of(this).scaffoldBackgroundColor;
  Color get dialogBackgroundColor => Theme.of(this).canvasColor;
  Color get appbarBackgroundColor => Theme.of(this).appBarTheme.backgroundColor!;
}
